<#-- 导入变量定义文件 -->
<#include "../template/template_listPage.ftl">
<@header title="供应商列表">
</@header>
<body class="list">
<div class="body">
    <div class="listBar">
        <h1><span class="icon">&nbsp;</span>库存产品列表&nbsp;<input type="button" class="addButton"
                                                               onclick="location.href='${web_base}/recharge/system_product!toAdd.htm'"
                                                               value="添加卡密产品"/></h1>
    </div>
<@pageList page=(page!) id="listForm" query="query" isEmpty=true >
    <div class="operateBar" style="display: none;">
        <label>查找:</label>
        <select name="property">
            <option value="name" <#if property?default("") == "name">selected="selected" </#if>>
                供货商名称
            </option>
        </select>
        <label class="searchText"><input type="text" name="keyword" value="${keyword!}"/></label><input type="submit"
                                                                                                        id="searchButton"
                                                                                                        class="searchButton"
                                                                                                        value=""/>
    </div>
    <table class="listTable">
        <tr>
            <th><span class="sort">序号</span></th>
            <th>
                <span class="sort">产品名称</span>
            </th>
            <th>
                <span class="sort">运营商</span>
            </th>
          <#--  <th>
                <span class="sort">号码类型</span>
            </th>-->
            <th>
                <span class="sort">产品类型</span>
            </th>
            <th>
                <span class="sort">面值(元)</span>
            </th>
            <th>
                <span class="sort">说明</span>
            </th>
            <th>
                操作
            </th>
        </tr>
        <#if  page??&&page.list??&&(page.list?size gt 0) >
            <#list page.list as entry>
                <tr>
                    <td>${entry_index+page.pageSize*(page.currentPage-1)+1}</td>
                    <td>
                    ${(entry.name)!}
                    </td>
                    <td>
                    ${(entry.operationName)!}
                    </td>
                  <#--  <td>
                    ${(entry.phoneTypeName)!}
                    </td>-->
                    <td>
                        <#if entry.productType==1 >直充
                        <#elseif entry.productType==0> 卡密<#else >其他</#if>
                    </td>
                    <td>
                    ${money((entry.faceValue)!)}
                    </td>
                    <td>
                    ${entry.introduce!}
                    </td>
                    <td>
                        <a href="${web_base}/recharge/system_product!toEdit.htm?id=${(entry.id)!}" title="编辑">[编辑]</a>
                    <#--  <#if entry.type?default(true)><a href="javascript:void(0);"
                   onclick="deleterSupplier('${(entry.id)!}');return false;"
                   title="删除">[删除]</a></#if> -->
                    </td>
                </tr>
            </#list>
        <#else>
            <tr>
                <td colspan="6">
                    <div class="noRecord">
                        没有找到任何记录!
                    </div>
                </td>
            </tr>
        </#if>
    </table>

</@pageList>
</div>
</body>
